import type { IllnessTime } from '@/enums'
import { flagOptions, timeOptions } from '@/services/constants'

//获取患病时间
const getIllnessTimeText = (time: IllnessTime) => {
  return timeOptions.find((item) => item.value === time)?.label
}
//获取是否就诊过
const getConsultFlagText = (flag: 0 | 1) =>
  flagOptions.find((item) => item.value === flag)?.label

export { getIllnessTimeText, getConsultFlagText }
